function getRootPath() {
	var curWwwPath = window.document.location.href;
	var pathName = window.document.location.pathname;
	var url=curWwwPath.substring(0, curWwwPath.indexOf(pathName));
	if(url.indexOf('localhost')>0){
		return url+ pathName.substring(0, pathName.substr(1).indexOf('/') + 1); 
	}
	if(url.split(".").length==4){
		return  url+ pathName.substring(0, pathName.substr(1).indexOf('/') + 1); 
	}
	return url; 
}
/** 全局路径，当前网站的根URL */
var basePath = getRootPath();

document.write(
		'<link rel="stylesheet" href="${path }/resource/zTree/css/demo.css" type="text/css">'
		+'<link rel="stylesheet" href="${path }/resource/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">'
		+'<script type="text/javascript" src="${path }/resource/js/jquery-1.8.3.min.js"></script>'
		+'<script type="text/javascript" src="${path }/resource/zTree/js/jquery.ztree.core.js"></script>'
		+'<script type="text/javascript" src="${path }/resource/zTree/js/jquery.ztree.excheck.js"></script>'
		+'<script type="text/javascript" src="${path }/resource/zTree/js/jquery.ztree.exedit.js"></script>'
		+'<link rel="stylesheet" href="${path }/resource/bootstrap/css/bootstrap.min.css" />'
		+'<script type="text/javascript" src="${path }/resource/layui/layui.js" ></script>'
		+'<link rel="stylesheet" href="${path }/resource/layui/css/layui.css" />'
);